/*
 * @lc app=leetcode.cn id=796 lang=cpp
 *
 * [796] 旋转字符串
 */

// @lc code=start
class Solution
{
public:
  bool rotateString(string s, string goal)
  {
    return s.size() == goal.size() && (s + s).find(goal) != string::npos;
  }
};
// @lc code=end
